package com.whh.entity;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class BaseEntity  implements Serializable  {

	/**
	 * 基类
	 */

	protected int id;	//主键
	
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	protected Date createTime;//创建时间
	
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	protected Date beginTime;//更新时间
	
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	protected Date finishTime;//结束时间
	
	protected Integer state;//状态
	
	protected String loginUserName;
	
	protected int loginUserId;
	
	protected String objType;
	
	protected String name;
	
	private int belongProject;//关联项目
	private int belongProduct;//关联产品
	private int belongTask;//关联任务
	private int belongDemand;//关联需求
	private int belongBug;//关联bug
	
	
	
	public int getBelongProject() {
		return belongProject;
	}

	public void setBelongProject(int belongProject) {
		this.belongProject = belongProject;
	}

	public int getBelongProduct() {
		return belongProduct;
	}

	public void setBelongProduct(int belongProduct) {
		this.belongProduct = belongProduct;
	}

	public int getBelongTask() {
		return belongTask;
	}

	public void setBelongTask(int belongTask) {
		this.belongTask = belongTask;
	}

	public int getBelongDemand() {
		return belongDemand;
	}

	public void setBelongDemand(int belongDemand) {
		this.belongDemand = belongDemand;
	}

	public int getBelongBug() {
		return belongBug;
	}

	public void setBelongBug(int belongBug) {
		this.belongBug = belongBug;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLoginUserName() {
		return loginUserName;
	}

	public void setLoginUserName(String loginUserName) {
		this.loginUserName = loginUserName;
	}

	public int getLoginUserId() {
		return loginUserId;
	}

	public void setLoginUserId(int loginUserId) {
		this.loginUserId = loginUserId;
	}

	public String getObjType() {
		return objType;
	}

	public void setObjType(String objType) {
		this.objType = objType;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	public Date getFinishTime() {
		return finishTime;
	}

	public void setFinishTime(Date finishTime) {
		this.finishTime = finishTime;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}


	
}
